package com.yanqu.road.entity.activity.worldcup;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.math.BigInteger;

@FieldTypeAnnotation(tableName = "t_u_worldcup_baller", autoSave = true)
public class UserWorldCupBallerData extends DataObject {

    @FieldTypeAnnotation(select = true, update = true, desc = "活动ID")
    private int activityId;

    @FieldTypeAnnotation(select = true, update = true, desc = "玩家ID")
    private long userId;

    @FieldTypeAnnotation(select = true, update = true, desc = "球员id")
    private int ballerId;
    @FieldTypeAnnotation(desc = "解数类型")
    private int type;
    @FieldTypeAnnotation(desc = "解数等级")
    private int level;
    @FieldTypeAnnotation(desc = "品质")
    private int quality;
    @FieldTypeAnnotation(desc = "技巧值")
    private int ability;

    @FieldTypeAnnotation(desc = "招募时间ms")
    private long recruitTime;

    @FieldTypeAnnotation(desc = "参赛时间ms")
    private long entryTime;
    @FieldTypeAnnotation(desc = "回收时间ms")
    private long recycleTime;


    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        if(this.activityId != activityId) {
            this.activityId = activityId;
            setUpdateOption();
        }
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if(this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public int getBallerId() {
        return ballerId;
    }

    public void setBallerId(int ballerId) {
        this.ballerId = ballerId;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public int getQuality() {
        return quality;
    }

    public void setQuality(int quality) {
        this.quality = quality;
    }

    public int getAbility() {
        return ability;
    }

    public void setAbility(int ability) {
        this.ability = ability;
    }

    public long getRecruitTime() {
        return recruitTime;
    }

    public void setRecruitTime(long recruitTime) {
        this.recruitTime = recruitTime;
    }

    public long getEntryTime() {
        return entryTime;
    }

    public void setEntryTime(long entryTime) {
        this.entryTime = entryTime;
    }

    public long getRecycleTime() {
        return recycleTime;
    }

    public void setRecycleTime(long recycleTime) {
        this.recycleTime = recycleTime;
    }
}
